<form class="formlist" method="<?php echo $method ?>" action="<?php echo $action ?>" <?php if ( $isEnctype ): ?>enctype="multipart/form-data"<?php endif; ?>><div>
    <?php if ( is_array($fields)): foreach($fields AS $field): ?>
    <?php $field->render() ?>
    <?php endforeach; endif; ?>
    <input type="submit" class="submit" name="<?php echo $slug ?>-submit" value="<?php echo $buttons['submit'] ?>" />
</div></form>